#include <stdio.h>
struct prime_str
{
	int number;
	unsigned long long value;
	/** 0 - not sent, 1 - sent. */
	char sent;
	/** 0 - not received, 1 - received and not a divisor, 2 - received and a divisor. */
	char received;
};

int main()
{
	FILE* file = fopen("primes", "rb");
	struct prime_str prime;
	int ret;
	while ((ret = fread(&prime, sizeof(prime), 1, file) == 1))
	{
		printf("%d. value = %llu, send = %d, received = %d\n", prime.number, prime.value, prime.sent, prime.received);
	}
	fclose(file);
}
